package com.gxa.service.impl;

import com.gxa.entity.ComboItems;
import com.gxa.mapper.ComboMapper;
import com.gxa.service.ComboService;
import com.gxa.vo.ComboVo;
import com.gxa.vo.ComboVo1;
import com.gxa.vo.TypesVo;
import com.gxa.vo.TypesVo1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComboServiceImpl implements ComboService {

    @Autowired
    private ComboMapper comboMapper;

    @Override
    public List<ComboVo1> queryComboAll() {
        return this.comboMapper.queryComboAll();
    }

    @Override
    public List<String> queryComboTypeName() {
        return this.comboMapper.queryComboTypeName();
    }

    @Override
    public List<ComboVo1> queryComboByName(ComboVo1 comboVo1) {
        return this.comboMapper.queryComboByName(comboVo1);
    }

    @Override
    public List<String> PreAddCombosQueryCampus() {
        return this.comboMapper.PreAddCombosQueryCampus();
    }

    @Override
    public List<String> PreAddCombosQueryItems() {
        return this.comboMapper.PreAddCombosQueryItems();
    }

    @Override
    public void addCombos(ComboVo1 comboVo1) {
        this.comboMapper.addCombos(comboVo1);
    }

    @Override
    public void addCombosItems(ComboItems comboItems) {
        this.comboMapper.addCombosItems(comboItems);
    }

    @Override
    public String queryItemsId(String name) {
        return this.comboMapper.queryItemsId(name);
    }

    @Override
    public ComboVo1 PreQueryCombos(ComboItems comboItems) {
        return this.comboMapper.PreQueryCombos(comboItems);
    }

    @Override
    public void EditCombos(ComboVo1 comboVo1) {
        this.comboMapper.EditCombos(comboVo1);
    }

    @Override
    public void EditCombosItems(ComboItems comboItems) {
        this.comboMapper.EditCombosItems(comboItems);
    }

    @Override
    public int queryCIId(ComboItems comboItems) {
        return this.comboMapper.queryCIId(comboItems);
    }

    @Override
    public void DelCombos(ComboVo1 comboVo1) {
        this.comboMapper.DelCombos(comboVo1);
    }

    @Override
    public void DelCombosItems(ComboItems comboItems) {
        this.comboMapper.DelCombosItems(comboItems);
    }

    @Override
    public List<String> queryItemsName(String comboId) {
        return this.comboMapper.queryItemsName(comboId);
    }

    @Override
    public List<TypesVo1> QueryTypes() {
        return this.comboMapper.QueryTypes();
    }

    @Override
    public ComboVo1 queryComboById(ComboVo1 comboVo1) {
        return this.comboMapper.queryComboById(comboVo1);
    }

}
